package com.boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "sys_roles")
public class Role implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    @TableField("role")
    private String role; //角色标识 程序中判断使用,如"admin"
    @TableField("description")
    private String description; //角色描述,UI界面显示使用
    @TableField("available")
    private Boolean available = Boolean.FALSE; //是否可用,如果不可用将不会添加给用户
}
